<script lang="ts" setup>
import axios from 'axios';
import { onMounted, ref } from 'vue';

const name = ref(100)
const getData =async ()=>{
 const res=await axios.get('http://hmajax.itheima.net/api/news')
 console.log(res.data.data);
}
onMounted(()=>{
  getData()
})

</script>
<template>

</template>
<style>

</style>
